package com.springboot.bookmanegersystem.mapper;

import com.springboot.bookmanegersystem.model.BookInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-05-11
 * Time: 8:54
 */
@Mapper
public interface BookMapper {

    List<BookInfo> getBookListDefault();

    List<BookInfo> getBookList(Integer currentPage, Integer pageSize);

    Integer getBookCount();

    BookInfo queryBookById(Integer bookId);

    Integer deleteBook(Integer bookId);

    Integer updateBook(BookInfo bookInfo);

    Integer addBook(BookInfo bookInfo);
}
